package com.qk.management.mapper;

import com.qk.domain.role.RoleDO;
import com.qk.dto.role.RoleDTO;
import com.qk.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface RoleMapper {
    List<RoleDO> selectByPage(RoleDTO roleDTO);

    RoleDO selectByName(String name);

    RoleDO selectByLabel(String label);

    Role selectById(Integer id);

    void insert(Role role);

    void update(Role role);

    void delete(Integer id);

    Role selectRoleById(Integer roleId);

    List<Role> selectAll();
}
